GoodReadsSearchResult

data class GoodReadsSearchResult(    val title: String,     val authors: List<String>,     val url: String) : Serializable, CompilableToString

Results of a search in GoodReads (see GoodReadsLookup).

See also

Constructors

Link copied to clipboard
fun GoodReadsSearchResult(    title: String,     authors: List<String>,     url: String)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun getMetadata(): GoodReadsMetadata

Get the book metadata for this search result.

Link copied to clipboard
open override fun toCompilableString(): String

Should return the String representation of this class as a compilable snippet (can be copy-pasted into Kotlin code).

Properties

Link copied to clipboard
val authors: List<String>

The list of authors, as shown in the search results. This includes only main authors, thus excluding authors marked as Illustrator, Editor, etc.

Link copied to clipboard
val authorsStr: String

The list of authors, comma-separated.

Link copied to clipboard
val title: String

The title, as shown in the search results.

Link copied to clipboard
val url: String

The URL to the book details, as shown in the search results. This URL can then be passed to GoodReadsMetadata.fromUrl to fetch the book's metadata.

Sources

Link copied to clipboard